# @Time    :2025/3/25 16:57
"""
7）给定一个字符串 text = "Python is fun and powerful."，
统计字符串中字母 n 出现的次数。
"""
text = "Python is fun and powerful."
print(text.count("n"))
